﻿using SelfManagement.Web.Models.ViewModels;
using System.ComponentModel.DataAnnotations;

namespace SelfManagement.Web.Models.ViewModels.ArticleModels
{
    public class CategoryViewModel: BaseEditViewModel
    {
        /// <summary>
        /// 分类名称
        /// </summary>
        [Required]
        [StringLength(50)]
        [Display(Name = "分类名称")]
        public string CategoryName { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name = "排序")]
        public int? Order { get; set; }
    }
}